package com.sdhs.projectschedule.controller;


import com.sdhs.common.core.controller.BaseController;
import com.sdhs.common.core.page.TableDataInfo;
import com.sdhs.projectschedule.domain.GcProgressMasterPlanMarkTemp;
import com.sdhs.projectschedule.service.IGcProgressMasterPlanMarkTempService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;


/**
 * 项目进度控制--总体计划管理子--总体计划制定-变更记录Controller
 *
 * @author ww
 */
@RestController
@RequestMapping("/progress/masterPlanMarkTemp")
public class GcProgressMasterPlanMarkTempController extends BaseController {
    @Autowired
    private IGcProgressMasterPlanMarkTempService gcProgressMasterPlanMarkTempService;

    /**
     * 查询项目进度控制--总体计划管理子--总体计划变更列表
     */
    @PreAuthorize("@ss.hasPermi('progress:masterPlanMark:list')")
    @GetMapping("/list")
    public TableDataInfo list(String planId) {
        startPage();
        List<GcProgressMasterPlanMarkTemp> list = gcProgressMasterPlanMarkTempService.selectGcProgressMasterPlanMarkTempList(planId);
        return getDataTable(list);
    }
}
